package top.wyloop.intoeins.module.iam.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import top.wyloop.intoeins.module.iam.model.entity.RolePermission;
import top.wyloop.intoeins.module.iam.model.entity.pk.RolePermissionPK;

/**
 * @author Wyatt6
 * @date 2025/2/1
 */
@Repository
public interface RolePermissionRepository extends JpaRepository<RolePermission, RolePermissionPK> {
    void deleteByRoleId(Long roleId);

    void deleteByPermissionId(Long permissionId);
}
